package ai.people.netmon.framework.domain.warning.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 预警主题分析关系表
 *
 * @TableName warning_subject_analysis
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(schema = "service_warning", value = "warning_subject_analysis")
public class WarningSubjectAnalysis implements Serializable {

    public WarningSubjectAnalysis(Long analysisSubjectId, Long analysisUserId, LocalDateTime createTime) {
        this.analysisSubjectId = analysisSubjectId;
        this.analysisUserId = analysisUserId;
        this.createTime = createTime;
    }

    /**
     *
     */
    @TableId
    private Long id;

    /**
     * 主题id
     */
    private Long analysisSubjectId;

    /**
     * 用户id
     */
    private Long analysisUserId;

    /**
     * 数据创建时间
     */
    private LocalDateTime createTime;

    /**
     * 数据更新时间
     */
    private LocalDateTime ts;

    /**
     * 是否删除 1是 0否
     */
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}